import { fabric } from "fabric-with-erasing";
//橡皮
export default function getEraserBrush(fabricCanvas: HTMLCanvasElement, opt: any) {
  const conf = opt ?? { width: 28, color: "#fff" };
  const brush = new fabric.EraserBrush(fabricCanvas);
  brush.color = conf.color || "#fff";
  brush.width = conf.width || 28;
  brush.width = conf.height || 28;
  return brush;
}
